import service from '@/network/service/service'

/**
 * 登录
 */
export const login = (data) => service.post(`/auth/login`, data, {
    headers: {
        isToken: false,
        repeatSubmit: false
    }
})

/**
 * 获取用户信息
 */
export const getUserInfo = () => service.get(`/system/user/getInfo`)

/**
 * 获取菜单
 */
export const getMenuList = (body) => service.post(`/mochat/menu/all`, body)

/**
 * 获取验证码
 */
export const getCodeImg = () => service.get('/code', {
    isToken: false
})